package com.moneywelcome.investfacade;

import com.moneywelcome.investfacade.dto.*;
import com.moneywelcome.investfacade.vo.RecordPageVo;
import com.moneywelcome.investfacade.vo.RedeemVo;
import com.moneywelcome.results.PageResult;
import com.moneywelcome.results.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(
        contextId="investRedeemApi",//服务名字
        value = "invest" // 区分不同client
)
public interface InvestRedeemApi {
    @PostMapping("/redeem")
    Result<RedeemDto> redeem(@RequestBody RedeemVo redeemVo);
    @PostMapping("/redeemRecord")
    Result<PageResult<RedeemRecordDto>> redeemRecord(@RequestBody RecordPageVo recordPageVo);
    @PostMapping("/redeemInfo")
    Result<RedeemRecordDto> redeemInfo(@RequestParam("redeemSerial") String redeemSerial);

}
